package com.foreknow.test_Exception;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ExceptionDemo02 {
    public void m1() throws FileNotFoundException, SQLException {
        InputStream inputStream = new FileInputStream("abc");
        DriverManager.getConnection("","","");
    }

    public static void main(String[] args) {
        ExceptionDemo02 demo02 = new ExceptionDemo02();
        try {
            demo02.m1();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
